home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / comm / ums / install-ums < prev    next >
Encoding:
Text File  |  1993-11-18  |  51.2 KB  |  1,740 lines

  1. ; $VER Install-UMS 10.8 (17.11.93)
  2. ;
  3. ; History: vxx.x  [kai] 20-Sep-93 started written history
  4. ; History: v10.6  [kai] 22-Sep-93 final cleanup
  5. ; History: v10.7  [kai] 29-Sep-93 real cleanup
  6. ; History: v10.7a [kai] 30-Sep-93 zer.username corrected
  7. ; History: v10.7b [kai] 30-Sep-93 expire.grouplist corrected
  8. ; History: v10.7c [kai] 15-Okt-93 Z-Netz stabilized / Fido-bound simplified
  9. ; History: v10.7d [kai] 17-Okt-93 better client
  10. ; History: v10.7e [kai] 26-Okt-93 better paths for Fido
  11. ; History: v10.7f [kai] 12-Nov-93 check if UUCP already installed
  12. ; History: v10.7g [kai] 17-Nov-93 Fido: no defaultregion, createintl
  13.  
  14. ; ToDo: correct Update
  15. ; ToWait: Doku, Maus, UUCP, IntuiNews
  16.  
  17. (transcript "Installing Universal Message System v10.8...")
  18.  
  19. (complete 0)
  20.  
  21. (message "This installation script only installs a basic UMS system with "
  22.          "only one single user and only one newsfeed for each network.\n\n"
  23.  
  24.          "In order to run a point on any network you may need additional "
  25.          "programs to exchange data packets with your newsfeed. "
  26.          "This programs are not supplied with UMS. Therefore this script "
  27.          "is unable to configure these programs.\n\n"
  28.  
  29.          "You'll still have to install a lot of things by hand but "
  30.          "this script gives you a working environment as a basis.\n\n")
  31.  
  32. (set @default-dest
  33.   (expandpath
  34.     (askdir
  35.       (prompt "In which disk or drawer should Universal Message System be installed?\n\n"
  36.               "(This script does not create a sub drawer for UMS)")
  37.       (help @askdir-help)
  38.       (default @default-dest)
  39.     )
  40.   )
  41. )
  42.  
  43. (if (<> (substr @default-dest (- (strlen @default-dest) 1) 1) ":")
  44.   (
  45.     (set @default-dest (cat @default-dest "/"))
  46.   )
  47. )
  48.  
  49.  
  50. (working "Installing user material")
  51. (run (cat "UMS-Release_10.8_1:Install-Support/LhA >\"CON:0/40//120/Installing user material\" -I -a x UMS-Release_10.8_1:user.LHA \"" @default-dest "\"")
  52.   (prompt "Installing user material")
  53. )
  54.  
  55. (complete 5)
  56.  
  57. ; -------------------------------------------------------------------------
  58.  
  59. (set envoy (exists "LIBS:nipc.library"))
  60.  
  61. (if envoy
  62.   (
  63.     (set client
  64.       (askchoice
  65.         (prompt "Do you want to run UMS server on this machine or do you want "
  66.                 "to access the message base over a local area network using "
  67.                 "Commodore's networking software Envoy?")
  68.         (default 0)
  69.         (help @askchoices-help)
  70.         (choices "message base is on this machine"
  71.                  "message base is accessed via Envoy")
  72.       )
  73.     )
  74.     (if (= client 0)
  75.       (
  76.         (set server
  77.           (askbool
  78.             (prompt "Do you want to export UMS as an Envoy service?\n"
  79.                     "(This enables other machines in a local area network "
  80.                     "to use the message base of this machine over the net)")
  81.             (default 0)
  82.             (help @askbool-help)
  83.           )
  84.         )
  85.       )
  86.     )
  87.   )
  88.   (
  89.     (set client 0)
  90.   )
  91. )
  92.  
  93. ; -------------------------------------------------------------------------
  94.  
  95. (copylib
  96.   (help @copylib-help)
  97.   (prompt "Installing amigaguide.library")
  98.   (confirm)
  99.   (source (tackon @default-dest "user/libs/amigaguide.library"))
  100.   (dest "LIBS:")
  101. )
  102.  
  103. (if (= client 0)
  104.   (
  105.     (copylib
  106.       (help @copylib-help)
  107.       (prompt "Installing flush.library")
  108.       (confirm)
  109.       (source (tackon @default-dest "user/libs/flush.library"))
  110.       (dest "LIBS:")
  111.     )
  112.   )  
  113. )
  114.  
  115. ; (set slowprocessor (= (database "cpu") "68000"))
  116.  
  117. (set slowprocessor 1)
  118.  
  119. (if slowprocessor
  120.   (
  121.     (copylib
  122.       (help @copylib-help)
  123.       (prompt "Installing ums.library")
  124.       (confirm)
  125.       (source (tackon @default-dest "user/libs/ums.library"))
  126.       (dest "LIBS:")
  127.     )
  128.   )
  129.   (
  130.     (copylib
  131.       (help @copylib-help)
  132.       (prompt "Installing ums.library ('010 version)")
  133.       (confirm)
  134.       (source (tackon @default-dest "user/libs/ums.library.010"))
  135.       (newname "ums.library")
  136.       (dest "LIBS:")
  137.     )
  138.   )
  139. )
  140.  
  141. (if (= client 0)
  142.   (
  143.     (if slowprocessor
  144.       (
  145.         (copylib
  146.           (help @copylib-help)
  147.           (prompt "Installing UMS Server")
  148.           (confirm)
  149.           (source (tackon @default-dest "user/l/umsserver"))
  150.           (dest "L:")
  151.         )
  152.       )
  153.       (
  154.         (copylib
  155.           (help @copylib-help)
  156.           (prompt "Installing UMS Server ('010 version)")
  157.           (confirm)
  158.           (source (tackon @default-dest "user/l/umsserver.010"))
  159.           (newname "umsserver")
  160.           (dest "L:")
  161.         )
  162.       )
  163.     )
  164.     (if server
  165.       (
  166.         (set servicepath
  167.           (expandpath
  168.             (askdir
  169.               (prompt "In which drawer should ums.service be placed?")
  170.               (help @askdir-help)
  171.               (default "SYS:Envoy/Services")
  172.             )
  173.           )
  174.         )
  175.         (copylib
  176.           (help @copylib-help)
  177.           (prompt "Installing UMS Service")
  178.           (confirm)
  179.           (infos)
  180.           (source (tackon @default-dest "user/services/ums.service"))
  181.           (dest servicepath)
  182.         )
  183.         (message "Please activate \"ums.service\" using Envoy's \"Services Manager\"")
  184.       )
  185.     )
  186.   )
  187. )
  188.  
  189. (set bin-dest (tackon @default-dest "bin"))
  190. (set script-dest (tackon @default-dest "s"))
  191. (set rexx-dest (tackon @default-dest "rexx"))
  192. (set doc-dest (tackon @default-dest "doc"))
  193.  
  194. (if (= (exists bin-dest) 0)
  195.   (
  196.     (rename (tackon @default-dest "user/bin") bin-dest)
  197.   )
  198. )
  199.  
  200. (if (= client 0)
  201.   (
  202.     (if (exists rexx-dest)
  203.       (
  204.         (copyfiles
  205.           (help @copyfiles-help)
  206.           (prompt "Updating ARexx Scripts")
  207.           (source (tackon @default-dest "user/rexx"))
  208.           (dest rexx-dest)
  209.           (all)
  210.           (optional "force" "askuser")
  211.         )
  212.       )
  213.       (
  214.         (rename (tackon @default-dest "user/rexx") rexx-dest)
  215.       )
  216.     )
  217.   )
  218.   (
  219.     (makedir rexx-dest)
  220.   )
  221. )
  222.  
  223. (if (exists script-dest)
  224.   (
  225.     (copyfiles
  226.       (help @copyfiles-help)
  227.       (prompt "Updating AmigaDOS Scripts")
  228.       (source (tackon @default-dest "user/s"))
  229.       (dest script-dest)
  230.       (all)
  231.       (optional "force" "askuser")
  232.     )
  233.   )
  234.   (
  235.     (rename (tackon @default-dest "user/s") script-dest)
  236.   )
  237. )
  238.  
  239. (if (exists doc-dest)
  240.   (
  241.     (copyfiles
  242.       (help @copyfiles-help)
  243.       (prompt "Updating Docs")
  244.       (source (tackon @default-dest "user/doc"))
  245.       (dest doc-dest)
  246.       (all)
  247.       (optional "force" "askuser")
  248.     )
  249.   )
  250.   (
  251.     (rename (tackon @default-dest "user/doc") doc-dest)
  252.   )
  253. )
  254.  
  255. (run (cat "Delete >NIL: \"" (tackon @default-dest "user") "\" ALL"))
  256.  
  257. ; -------------------------------------------------------------------------
  258.  
  259. (if (= client 0)
  260.   (
  261.     (makedir (tackon @default-dest "mb"))
  262.     (set mbpath (tackon @default-dest "mb/"))
  263.  
  264.     (set mbpath
  265.       (expandpath
  266.         (askdir
  267.           (prompt "In which disk or drawer should the message base be placed?\n"
  268.                   "(you get a notable performance increase if you place the "
  269.                   "message base on a seperate partition with a large block "
  270.                   "size!)")
  271.           (help @askdir-help)
  272.           (default mbpath)
  273.         )
  274.       )
  275.     )
  276.  
  277.     (complete 10)
  278.  
  279.     (set tools
  280.       (askoptions
  281.         (prompt "Which tools do you want to install?")
  282.         (help @askoptions-help)
  283.         (choices "SelectMail" "Stuntzi's UMS Tools" "Top Ten" "ImportExport" "UMS Password" "Expire" "Bouncer" "FixAccess")
  284.       )
  285.     )
  286.   )
  287.   (
  288.     (set tools
  289.       (askoptions
  290.         (prompt "Which tools do you want to install?")
  291.         (help @askoptions-help)
  292.         (choices "SelectMail" "Stuntzi's UMS Tools" "Top Ten" "ImportExport" "UMS Password")
  293.       )
  294.     )
  295.   )
  296. )
  297.  
  298. (if (<> tools 0)
  299.   (
  300.     (makedir (tackon @default-dest "tools")
  301.       (prompt "Creating Tools directory")
  302.     )
  303.     (set tool-dest (tackon @default-dest "tools/"))
  304.   )
  305. )
  306.  
  307. (if (in tools 0)
  308.   (
  309.     (working "Installing SelectMail")
  310.     (run (cat "UMS-Release_10.8_1:Install-Support/LhA >\"CON:0/40//120/Installing SelectMail\" -I -a x UMS-Release_10.8_1:tools/SelectMail.LHA \"" tool-dest "\"")
  311.       (prompt "Installing SelectMail")
  312.     )
  313.     (delete (tackon bin-dest "SelectMail"))
  314.     (rename (tackon tool-dest "selectmail/SelectMail") (tackon bin-dest "SelectMail"))
  315.   )
  316. )
  317.  
  318. (if (in tools 1)
  319.   (
  320.     (working "Installing Stuntzi's UMS Tools")
  321.     (run (cat "UMS-Release_10.8_1:Install-Support/LhA >\"CON:0/40//120/Installing Stuntzi's UMS Tools\" -I -a x UMS-Release_10.8_1:tools/sumstl.LHA \"" tool-dest "\"")
  322.       (prompt "Installing Stuntzi's UMS Tools")
  323.     )
  324.     (delete   (tackon bin-dest "sumsset"))
  325.     (rename (tackon tool-dest "sumstl/sumsset")   (tackon bin-dest "sumsset"))
  326.     (delete (tackon bin-dest "sumsprint"))
  327.     (rename (tackon tool-dest "sumstl/sumsprint") (tackon bin-dest "sumsprint"))
  328.     (delete (tackon bin-dest "sumswrite"))
  329.     (rename (tackon tool-dest "sumstl/sumswrite") (tackon bin-dest "sumswrite"))
  330.   )
  331. )
  332.  
  333. (if (in tools 2)
  334.   (
  335.     (working "Installing TopTen")
  336.     (run (cat "UMS-Release_10.8_1:Install-Support/LhA >\"CON:0/40//120/Installing TopTen\" -I -a x UMS-Release_10.8_1:tools/TopTen.LHA \"" tool-dest "\"")
  337.       (prompt "Installing TopTen")
  338.     )
  339.     (delete (tackon bin-dest "TopTen"))
  340.     (rename (tackon tool-dest "TopTen/TopTen") (tackon bin-dest "TopTen"))
  341.   )
  342. )
  343.  
  344. (if (in tools 3)
  345.   (
  346.     (working "Installing UMS Import and Export tools")
  347.     (run (cat "UMS-Release_10.8_1:Install-Support/LhA >\"CON:0/40//120/Installing UMS Import and Export tools\" -I -a x UMS-Release_10.8_1:tools/ImportExport.LHA \"" tool-dest "\"")
  348.       (prompt "Installing UMS Import and Export tools")
  349.     )
  350.     (delete (tackon bin-dest "export"))
  351.     (rename (tackon tool-dest "importexport/export") (tackon bin-dest "export"))
  352.     (delete (tackon bin-dest "import"))
  353.     (rename (tackon tool-dest "importexport/import") (tackon bin-dest "import"))
  354.     (delete (tackon bin-dest "umsdoctor"))
  355.     (rename (tackon tool-dest "importexport/umsdoctor") (tackon bin-dest "umsdoctor"))
  356.   )
  357. )
  358.  
  359. (if (in tools 4)
  360.   (
  361.     (working "Installing UMS Password")
  362.     (run (cat "UMS-Release_10.8_1:Install-Support/LhA >\"CON:0/40//120/Installing UMS Password\" -I -a x UMS-Release_10.8_1:tools/UMSPassword.LHA \"" tool-dest "\"")
  363.       (prompt "Installing UMS Password")
  364.     )
  365.     (delete (tackon bin-dest "umspasswd"))
  366.     (rename (tackon tool-dest "UMSPassword/umspasswd") (tackon bin-dest "umspasswd"))
  367.     (delete (tackon bin-dest "umspasswd.nomui"))
  368.     (rename (tackon tool-dest "UMSPassword/umspasswd.nomui") (tackon bin-dest "umspasswd.nomui"))
  369.   )
  370. )
  371.  
  372. (if (in tools 5)
  373.   (
  374.     (working "Installing Expire")
  375.     (run (cat "UMS-Release_10.8_1:Install-Support/LhA >\"CON:0/40//120/Installing Expire\" -I -a x UMS-Release_10.8_1:tools/Expire.LHA \"" tool-dest "\"")
  376.       (prompt "Installing Expire")
  377.     )
  378.     (delete (tackon bin-dest "Expire"))
  379.     (rename (tackon tool-dest "expire/Expire") (tackon bin-dest "Expire"))
  380.   )
  381. )
  382.  
  383. (if (in tools 6)
  384.   (
  385.     (working "Installing Bouncer")
  386.     (run (cat "UMS-Release_10.8_1:Install-Support/LhA >\"CON:0/40//120/Installing Bouncer\" -I -a x UMS-Release_10.8_1:tools/Bouncer.LHA \"" tool-dest "\"")
  387.       (prompt "Installing Bouncer")
  388.     )
  389.     (delete (tackon bin-dest "bouncer"))
  390.     (rename (tackon tool-dest "Bouncer/bouncer") (tackon bin-dest "bouncer"))
  391.     (delete (tackon bin-dest "unbounce"))
  392.     (rename (tackon tool-dest "Bouncer/unbounce") (tackon bin-dest "unbounce"))
  393.   )
  394. )
  395.  
  396. (if (in tools 7)
  397.   (
  398.     (working "Installing FixAccess")
  399.     (run (cat "UMS-Release_10.8_1:Install-Support/LhA >\"CON:0/40//120/Installing FixAccess\" -I -a x UMS-Release_10.8_1:tools/FixAccess.LHA \"" tool-dest "\"")
  400.       (prompt "Installing FixAccess")
  401.     )
  402.     (delete (tackon bin-dest "FixAccess"))
  403.     (rename (tackon tool-dest "FixAccess/FixAccess") (tackon bin-dest "FixAccess"))
  404.   )
  405. )
  406.  
  407. (complete 15)
  408.  
  409. ; -------------------------------------------------------------------------
  410.  
  411. (set readers
  412.   (askoptions
  413.     (prompt "Which message readers do you want to install?")
  414.     (default 3)
  415.     (help @askoptions-help)
  416.     (choices "IntuiNews" "RUMS" "Mimas" "MUMS" "ReadX")
  417.   )
  418. )
  419.  
  420. (if (<> readers 0)
  421.   (
  422.     (makedir (tackon @default-dest "reader")
  423.       (prompt "Creating reader directory")
  424.     )
  425.     (set reader-dest (tackon @default-dest "reader/"))
  426.   )
  427. )
  428.  
  429. (if (in readers 0)
  430.   (
  431.     (working "Installing IntuiNews reader")
  432.     (run (cat "UMS-Release_10.8_1:Install-Support/LhA >\"CON:0/40//120/Installing IntuiNews reader\" -I -a x UMS-Release_10.8_1:reader/IntuiNews.LHA \"" reader-dest "\"")
  433.       (prompt "Installing IntuiNews reader")
  434.     )
  435.  
  436.     (set intuilang
  437.       (askoptions
  438.         (prompt "Which languages do you want to use for IntuiNews?")
  439.         (default 3)
  440.         (help @askoptions-help)
  441.         (choices "english" "deutsch")
  442.       )
  443.     )
  444.  
  445.     (if (exists "LIBS:locale.library")
  446.       (
  447.         (if (in intuilang 1)
  448.           (
  449.             (if (askbool
  450.                   (prompt "Do you want to use the completely localized german version or "
  451.                           "do you prefer a carefully localized german version which "
  452.                           "doesn't translate common english expressions?")
  453.                   (default 1)
  454.                   (choices "Completely localized" "Carefully localized")
  455.                   (help @askbool-help))
  456.               (
  457.                 (copylib
  458.                   (help @copylib-help)
  459.                   (prompt "Installing \"volldeutsch\" localization")
  460.                   (source (tackon reader-dest "IntuiNews/locale/catalogs/volldeutsch/IntuiNews.catalog"))
  461.                   (dest "LOCALE:catalogs/deutsch/")
  462.                 )
  463.               )
  464.               (
  465.                 (copylib
  466.                   (help @copylib-help)
  467.                   (prompt "Installing german localization")
  468.                   (source (tackon reader-dest "IntuiNews/locale/catalogs/deutsch/IntuiNews.catalog"))
  469.                   (dest "LOCALE:catalogs/deutsch/")
  470.                 )
  471.               )
  472.             )
  473.           )
  474.         )
  475.       )
  476.     )
  477.  
  478.     (run (cat "Delete >NIL: \"" (tackon reader-dest "IntuiNews/locale(%|.info)") "\" ALL"))
  479.  
  480.     (if (in intuilang 0)
  481.       (
  482.         (set docpath
  483.           (expandpath
  484.             (askdir
  485.               (prompt "Select a destination for the english online documentation")
  486.               (help @askdir-help)
  487.               (default "HELP:english/")
  488.             )
  489.           )
  490.         )
  491.         (copyfiles
  492.           (help @copyfiles-help)
  493.           (prompt "Installing english online documentation")
  494.           (infos)
  495.           (source (tackon reader-dest "IntuiNews/docs/english/IntuiNews.guide"))
  496.           (dest docpath)
  497.           (optional "force" "askuser")
  498.         )
  499.       )
  500.     )
  501.  
  502.     (if (in intuilang 1)
  503.       (
  504.         (set docpath
  505.           (expandpath
  506.             (askdir
  507.               (prompt "Select a destination for the german online documentation")
  508.               (help @askdir-help)
  509.               (default "HELP:deutsch/")
  510.             )
  511.           )
  512.         )
  513.         (copyfiles
  514.           (help @copyfiles-help)
  515.           (prompt "Installing german online documentation")
  516.           (infos)
  517.           (source (tackon reader-dest "IntuiNews/docs/deutsch/IntuiNews.guide"))
  518.           (dest docpath)
  519.           (optional "force" "askuser")
  520.         )
  521.       )
  522.     )
  523.  
  524.     (run (cat "Delete >NIL: \"" (tackon reader-dest "IntuiNews/Docs(%|.info)") "\" ALL"))
  525.  
  526.     (delete      (tackon @default-dest "IntuiNews"))
  527.     (rename (tackon reader-dest "IntuiNews/IntuiNews")      (tackon @default-dest "IntuiNews"))
  528.     (delete (tackon @default-dest "IntuiNews.info"))
  529.     (rename (tackon reader-dest "IntuiNews/IntuiNews.info") (tackon @default-dest "IntuiNews.info"))
  530.   )
  531. )
  532.  
  533. (complete 25)
  534.  
  535. (if (in readers 1)
  536.   (
  537.     (working "Installing RUMS reader")
  538.     (run (cat "UMS-Release_10.8_1:Install-Support/LhA >\"CON:0/40//120/Installing RUMS reader\" -I -a x UMS-Release_10.8_1:reader/RUMS.LHA \"" reader-dest "\"")
  539.       (prompt "Installing RUMS reader")
  540.     )
  541.  
  542.     (delete      (tackon @default-dest "RUMS"))
  543.     (rename (tackon reader-dest "RUMS/RUMS")      (tackon @default-dest "RUMS"))
  544.     (delete (tackon @default-dest "RUMS.info"))
  545.     (rename (tackon reader-dest "RUMS/RUMS.info") (tackon @default-dest "RUMS.info"))
  546.     (delete      (tackon bin-dest "Wrap"))
  547.     (rename (tackon reader-dest "RUMS/Wrap")      (tackon bin-dest "Wrap"))
  548.   )
  549. )
  550.  
  551. (complete 30)
  552.  
  553. (if (in readers 2)
  554.   (
  555.     (message "Sorry, Mimas is only available as beta version, because "
  556.              "it is not completed yet!\n\n"
  557.  
  558.              "It's author AndrĂ© Schenk can be reached as follows:\n\n"
  559.  
  560.              "UUCP: andre@melior.stgt.sub.org\n"
  561.              "FIDO: 2:2407/106.42@fidonet\n")
  562.   )
  563. )
  564.  
  565. (if (in readers 3)
  566.   (
  567.     (message "MUMS ist currently in beta test! Please contact Klaus Melchior "
  568.              "for additional information.\n\n"
  569.  
  570.              "He can be reached as follows:\n\n"
  571.  
  572.              "UUCP: klaus_melchior@mowgli.fido.de\n"
  573.              "ADSP: kmel@eifel.adsp.sub.org\n"
  574.              "Fido: 2:242/7.2@Fidonet\n")
  575.   )
  576. )
  577.  
  578. (if (in readers 4)
  579.   (
  580.     (message "Sorry, ReadX is only available as beta version, "
  581.              "because SteveX is too busy and Kai Bolay is too lazy "
  582.              "to complete it.\n\n"
  583.  
  584.              "Steve Tibbet can be reached as follows:\n\n"
  585.  
  586.              "UUCP: SteveX@cup.portal.com\n")
  587.   )
  588. )
  589.  
  590. ; -------------------------------------------------------------------------
  591.  
  592.  
  593. (if (= client 0)
  594.   (
  595.     (set bbss
  596.       (askoptions
  597.         (prompt "Which Bulletin Board Systems do you want to install?")
  598.         (default 0)
  599.         (help @askoptions-help)
  600.         (choices "BBX" "BSTalk" "KMS")
  601.       )
  602.     )
  603.   )
  604.   (
  605.     (set bbss 0)
  606.   )
  607. )
  608.  
  609. (if (in bbss 0)
  610.   (
  611.     (message "Sorry, BBX does not support UMS yet.\n\n"
  612.  
  613.              "Steve Tibbet can be reached as follows:\n\n"
  614.  
  615.              "UUCP: SteveX@cup.portal.com\n")
  616.   )
  617. )
  618.  
  619. (if (in bbss 1)
  620.   (
  621.     (message "Sorry, BSTalk is only available as beta version!\n\n"
  622.  
  623.              "It's author Andreas Krieg can be reached as follows:\n\n"
  624.  
  625.              "UUCP: andi@bline.stgt.sub.org\n"
  626.              "Fido: 2:2407/107@fidonet\n")
  627.   )
  628. )
  629.  
  630. (if (in bbss 2)
  631.   (
  632.     (message "Sorry, KMS is only available as beta version!\n\n"
  633.  
  634.              "It's author Thomas Schwarz can be reached as follows:\n\n"
  635.  
  636.              "UUCP: blacky@bmagic.incubus.sub.org\n"
  637.              "Fido: 2:242/11.1@fidonet\n")
  638.   )
  639. )
  640.  
  641. ; -------------------------------------------------------------------------
  642.  
  643. (if (= client 0)
  644.   (
  645.     (set drivers
  646.       (askoptions
  647.         (prompt "In which networks do you want to participate?")
  648.         (default 0)
  649.         (help @askoptions-help)
  650.         (choices "UUCP" "Fido" "Maus" "Z-Netz")
  651.       )
  652.     )
  653.   )
  654.   (
  655.     (set drivers 0)
  656.   )
  657. )
  658.  
  659. (if (<> drivers 0)
  660.   (
  661.     (makedir (tackon @default-dest "drivers")
  662.       (prompt "Creating drivers directory")
  663.     )
  664.     (set driver-dest (tackon @default-dest "drivers/"))
  665.   )
  666. )
  667.  
  668. (if (in drivers 0)
  669.   (
  670.     (working "Installing Usenet subsystem")
  671.     (run (cat "UMS-Release_10.8_2:Install-Support/LhA >\"CON:0/40//120/Installing Usenet subsystem\" -I -a x UMS-Release_10.8_2:drivers/uucp.LHA \"" driver-dest "\"")
  672.       (prompt "Installing Usenet subsystem")
  673.     )
  674.     (delete    (tackon bin-dest "compress"))
  675.     (rename (tackon driver-dest "uucp/bin/compress")    (tackon bin-dest "compress"))
  676.     (delete        (tackon bin-dest "gzip"))
  677.     (rename (tackon driver-dest "uucp/bin/gzip")        (tackon bin-dest "gzip"))
  678.     (delete    (tackon bin-dest "ums2uucp"))
  679.     (rename (tackon driver-dest "uucp/bin/ums2uucp")    (tackon bin-dest "ums2uucp"))
  680.     (delete  (tackon bin-dest "uucico116a"))
  681.     (rename (tackon driver-dest "uucp/bin/uucico116a")  (tackon bin-dest "uucico116a"))
  682.     (delete      (tackon bin-dest "freeze"))
  683.     (rename (tackon driver-dest "uucp/bin/freeze")      (tackon bin-dest "freeze"))
  684.     (delete (tackon bin-dest "testaddress"))
  685.     (rename (tackon driver-dest "uucp/bin/testaddress") (tackon bin-dest "testaddress"))
  686.     (delete      (tackon bin-dest "uucico"))
  687.     (rename (tackon driver-dest "uucp/bin/uucico")      (tackon bin-dest "uucico"))
  688.     (delete       (tackon bin-dest "uuxqt"))
  689.     (rename (tackon driver-dest "uucp/bin/uuxqt")       (tackon bin-dest "uuxqt"))
  690.  
  691.     (run (cat "Delete >NIL: \"" (tackon driver-dest "uucp/bin") "\""))
  692.  
  693.     (copylib
  694.       (help @copylib-help)
  695.       (prompt "Installing OwnDevUnit.library")
  696.       (confirm)
  697.       (source (tackon driver-dest "uucp/libs/OwnDevUnit.library"))
  698.       (dest "LIBS:")
  699.     )
  700.  
  701.     (run (cat "Delete >NIL: \"" (tackon driver-dest "uucp/libs") "\" ALL"))
  702.  
  703.     (message "Now configuring your Usenet subsystem")
  704.     (set uucpfeed
  705.       (askstring
  706.         (prompt "Please enter the name of your newsfeed (without domain)")
  707.         (help @askstring-help)
  708.         (default "feed")
  709.       )
  710.     )
  711.     (set dumbhost
  712.       (askbool
  713.         (prompt "Does your newsfeed rely on information in the UUCP mail "
  714.                 "envelopes (RFC976 format) instead of parsing to RFC822 "
  715.                 "header?\n\n"
  716.                 "Usually it does not, but if your newsfeed is running "
  717.                 "Dillon UUCP it requires this outdated information.")
  718.         (default 1)
  719.         (help @askbool-help)
  720.       )
  721.     )
  722.     (set dillon (exists "UULIB:config" (noreq)))
  723.  
  724.     (if dillon
  725.       (
  726.         (message "A UUCP installation was detected. UMS-UUCP will use "
  727.                  "the config files (\"UULIB:config\", \"UULIB:L.sys\") "
  728.                  "of this installation. Please check if they are correct.\n")
  729.       )
  730.       (
  731.         (set feedphone
  732.           (askstring
  733.             (prompt "Please enter the telephone number of your newsfeed")
  734.             (help @askstring-help)
  735.             (default "08154711")
  736.           )
  737.         )
  738.         (set uucppassword
  739.           (askstring
  740.             (prompt "Please enter you password for your newsfeed")
  741.             (help @askstring-help)
  742.             (default "secret")
  743.           )
  744.         )
  745.       )
  746.     )
  747.     (set batch
  748.       (askoptions
  749.         (prompt "Please choose exporting method for mail and news")
  750.         (default 2)
  751.         (help @askoptions-help)
  752.         (choices "batch mail" "batch news")
  753.       )
  754.     )
  755.     (if (in batch 0)
  756.       (
  757.         (set mailcompress
  758.           (askchoice
  759.             (prompt "Please select compression method for mail")
  760.             (default 0)
  761.             (help @askchoices-help)
  762.             (choices "none" "compress" "freeze" "gzip")
  763.           )
  764.         )
  765.         (if (<> mailcompress 0)
  766.           (
  767.             (set maxmailcompress
  768.               (asknumber
  769.                 (prompt "Please enter maximal number of bytes for one batch")
  770.                 (default 65536)
  771.                 (help @asknumber-help)
  772.               )
  773.             )
  774.           )
  775.         )
  776.       )
  777.     )
  778.     (if (in batch 1)
  779.       (
  780.         (set newscompress
  781.           (askchoice
  782.             (prompt "Please select compression method for news")
  783.             (default 1)
  784.             (help @askchoices-help)
  785.             (choices "none" "compress" "freeze" "gzip (\"#! gunbatch\" header)" "gzip (\"#! zunbatch\" header)")
  786.           )
  787.         )
  788.         (if (<> newscompress 0)
  789.           (
  790.             (set maxnewscompress
  791.               (asknumber
  792.                 (prompt "Please enter maximal number of bytes for one batch")
  793.                 (default 65536)
  794.                 (help @asknumber-help)
  795.               )
  796.             )
  797.           )
  798.         )
  799.       )
  800.     )
  801.     (set nodename
  802.       (askstring
  803.         (prompt "Please enter your node's name")
  804.         (help @askstring-help)
  805.         (default "mysystem")
  806.       )
  807.     )
  808.     (set domainname
  809.       (askstring
  810.         (prompt "Please enter your node's domain name")
  811.         (help @askstring-help)
  812.         (default "mysystem.foo.bar")
  813.       )
  814.     )
  815.     (set registered
  816.       (askbool
  817.         (prompt "Is your node registered in the UUCP maps?")
  818.         (default 0)
  819.         (help @askbool-help)
  820.       )
  821.     )
  822.     (if (= dillon 0)
  823.       (
  824.         (startup "UMS-UUCP"
  825.           (prompt "Installing Assigns for UMS-UUCP")
  826.           (help @startup-help)
  827.           (command (cat "Assign UUSPOOL: \"" (tackon driver-dest "uucp/spool\"\n")))
  828.           (command (cat "Assign UUPUB: \"" (tackon driver-dest "uucp/pub\"\n")))
  829.           (command (cat "Assign UULIB: \"" (tackon driver-dest "uucp/lib\"\n")))
  830.         )
  831.       )  
  832.     )
  833.     (message "UUCiCo is part of this distribution. See the documentation "
  834.              "for more information how to poll UUCP. Please especially inspect "
  835.              "\"UULIB:L.sys\" to find out if it's correct.\n")
  836.   )
  837. )
  838.  
  839. (complete 40)
  840.  
  841. (if (in drivers 1)
  842.   (
  843.     (working "Installing Fido subsystem")
  844.     (run (cat "UMS-Release_10.8_2:Install-Support/LhA >\"CON:0/40//120/Installing Fido subsystem\" -I -a x UMS-Release_10.8_2:drivers/fido.LHA \"" driver-dest "\"")
  845.       (prompt "Installing Fido subsystem")
  846.     )
  847.     (delete (tackon bin-dest "FidoExport"))
  848.     (rename (tackon driver-dest "fido/FidoExport") (tackon bin-dest "FidoExport"))
  849.     (delete (tackon bin-dest "FidoImport"))
  850.     (rename (tackon driver-dest "fido/FidoImport") (tackon bin-dest "FidoImport"))
  851.  
  852.     (message "Now configuring your Fido subsystem")
  853.     (set bossaddr
  854.       (askstring
  855.         (prompt "Please enter the address of your boss")
  856.         (help @askstring-help)
  857.         (default "1:234/567")
  858.       )
  859.     )
  860.     (run (cat "rx UMS-Release_10.8_2:Install-Support/MakeFidoAlias " bossaddr))
  861.     (set fidoalias (getenv "fido-alias"))
  862.  
  863.     (set stoneage
  864.       (if
  865.         (
  866.           (askbool
  867.             (prompt "Does your boss support full four dimensional operation?")
  868.             (help @askbool-help)
  869.           )
  870.         )
  871.         0 1
  872.       )
  873.     )
  874.     (set pointaddr
  875.       (askstring
  876.         (prompt "Please enter your point address")
  877.         (help @askstring-help)
  878.         (default (cat bossaddr ".x"))
  879.       )
  880.     )
  881.     (if stoneage
  882.       (
  883.         (set fakeaddr
  884.           (askstring
  885.             (prompt "Please enter your fake address")
  886.             (help @askstring-help)
  887.             (default "567/8")
  888.           )
  889.         )
  890.       )
  891.     )
  892.     (set arccmd
  893.       (askstring
  894.         (prompt "Please enter AmigaDOS command to crunch your messages\n\n")
  895.         (help @askstring-help)
  896.         (default "LhA -I -u -m -U2048 m %s %s")
  897.       )
  898.     )
  899.     (set dearccmd
  900.       (askstring
  901.         (prompt "Please enter AmigaDOS command to decrunch your messages\n\n")
  902.         (help @askstring-help)
  903.         (default "LhA -I -m -f -x0 -U8192 x %s %s")
  904.       )
  905.     )
  906.  
  907.     (message "A fido mailer is not part of the UMS distribution "
  908.              "You'll need TrapDoor or any other fido mailer in order "
  909.              "to run a fido point. You must configure this mailer by hand.\n\n")
  910.   )
  911. )
  912.  
  913. (complete 50)
  914.  
  915. (if (in drivers 2)
  916.   (
  917.     (working "Installing Maus subsystem")
  918.     (run (cat "UMS-Release_10.8_2:Install-Support/LhA >\"CON:0/40//120/Installing Maus subsystem\" -I -a x UMS-Release_10.8_2:drivers/maus.LHA \"" driver-dest "\"")
  919.       (prompt "Installing Maus subsystem")
  920.     )
  921.     (delete (tackon bin-dest "m2ums"))
  922.     (rename (tackon driver-dest "maus/Maustausch/m2ums") (tackon bin-dest "m2ums"))
  923.     (delete (tackon bin-dest "ums2m"))
  924.     (rename (tackon driver-dest "maus/Maustausch/ums2m") (tackon bin-dest "ums2m"))
  925.  
  926.     (delete (tackon rexx-dest "MultiMaus.rexx"))
  927.     (rename (tackon driver-dest "maus/MultiMaus/MultiMaus.rexx") (tackon rexx-dest "MultiMaus.rexx"))
  928.  
  929.     (delete (tackon bin-dest "UMSGroup"))
  930.     (rename (tackon driver-dest "maus/UMSGroup/UMSGroup") (tackon bin-dest "UMSGroup"))
  931.  
  932.     (message "Now configuring your Maus subsystem")
  933.     (set mausfeed
  934.       (askstring
  935.         (prompt "Please enter the address of your Maus mailbox")
  936.         (help @askstring-help)
  937.         (default "AC")
  938.       )
  939.     )
  940.  
  941.     (message "A \"Maustausch\" script is provided. Please read MultiMaus.doc for "
  942.              "more information.\n")
  943.   )
  944. )
  945.  
  946. (complete 60)
  947.  
  948. (if (in drivers 3)
  949.   (
  950.     (working "Installing Z-Netz subsystem")
  951.     (run (cat "UMS-Release_10.8_2:Install-Support/LhA >\"CON:0/40//120/Installing Z-Netz subsystem\" -I -a x UMS-Release_10.8_2:drivers/z-netz.LHA \"" driver-dest "\"")
  952.       (prompt "Installing Z-Netz subsystem")
  953.     )
  954.     (delete (tackon bin-dest "ZerExport"))
  955.     (rename (tackon driver-dest "z-netz/ZerExport") (tackon bin-dest "ZerExport"))
  956.     (delete (tackon bin-dest "ZerImport"))
  957.     (rename (tackon driver-dest "z-netz/ZerImport") (tackon bin-dest "ZerImport"))
  958.     (delete (tackon bin-dest "ZerberusMailer"))
  959.     (rename (tackon driver-dest "z-netz/ZerberusMailer/c/ZerberusMailer") (tackon bin-dest "ZerberusMailer"))
  960.  
  961.     (message "Now configuring your Z-Netz subsystem")
  962.     (set zerserver
  963.       (askstring
  964.         (prompt "Please enter the address of you Z-Netz server box")
  965.         (help @askstring-help)
  966.         (default "FOOBAR")
  967.       )
  968.     )
  969.  
  970.     (message "ZerberusMailer ist part of this distribution, but you have "
  971.              "to configure it by hand. Sorry for the inconvenience.\n")
  972.   )
  973. )
  974.  
  975. (complete 70)
  976.  
  977.  
  978. ; -------------------------------------------------------------------------
  979.  
  980. (if (askbool
  981.     (prompt "Do you want to install developer material (ARexx, C, Modula-2, Oberon)?")
  982.     (help @askbool-help)
  983.     (default 1)
  984.   )
  985.   (
  986.     (working "Installing developer material")
  987.     (run (cat "UMS-Release_10.8_2:Install-Support/LhA >\"CON:0/40//120/Installing developer material\" -I -a x UMS-Release_10.8_2:developer.LHA \"" @default-dest "\"")
  988.       (prompt "Installing developer material")
  989.     )
  990.     (delete (tackon bin-dest "GroupContents"))
  991.     (rename (tackon @default-dest "developer/demo/GroupContents") (tackon bin-dest "GroupContents"))
  992.     (delete (tackon bin-dest "ReadMessage"))
  993.     (rename (tackon @default-dest "developer/demo/ReadMessage") (tackon bin-dest "ReadMessage"))
  994.     (delete (tackon bin-dest "ShowGroups"))
  995.     (rename (tackon @default-dest "developer/demo/ShowGroups") (tackon bin-dest "ShowGroups"))
  996.     (delete (tackon bin-dest "WriteMessage"))
  997.     (rename (tackon @default-dest "developer/demo/WriteMessage") (tackon bin-dest "WriteMessage"))
  998.  
  999.     (delete (tackon rexx-dest "GroupContents.rexx"))
  1000.     (rename (tackon @default-dest "developer/arexx/GroupContents.rexx") (tackon rexx-dest "GroupContents.rexx"))
  1001.     (delete (tackon rexx-dest "ReadMessage.rexx"))
  1002.     (rename (tackon @default-dest "developer/arexx/ReadMessage.rexx") (tackon rexx-dest "ReadMessage.rexx"))
  1003.     (delete (tackon rexx-dest "ShowGroups.rexx"))
  1004.     (rename (tackon @default-dest "developer/arexx/ShowGroups.rexx") (tackon rexx-dest "ShowGroups.rexx"))
  1005.     (delete (tackon rexx-dest "WriteMessage.rexx"))
  1006.     (rename (tackon @default-dest "developer/arexx/WriteMessage.rexx") (tackon rexx-dest "WriteMessage.rexx"))
  1007.     (delete (tackon rexx-dest "UmsConsts.rexx"))
  1008.     (rename (tackon @default-dest "developer/arexx/UmsConsts.rexx") (tackon rexx-dest "UmsConsts.rexx"))
  1009.   )
  1010. )
  1011.  
  1012. (complete 80)
  1013.  
  1014. ; -------------------------------------------------------------------------
  1015.  
  1016. (message "Now configuring global variables")
  1017.  
  1018. (set username
  1019.   (askstring
  1020.     (prompt "Please enter your full name")
  1021.     (help @askstring-help)
  1022.     (default "Joe User")
  1023.   )
  1024. )
  1025.  
  1026. (set shortusername
  1027.   (askstring
  1028.     (prompt "Please enter your short name")
  1029.     (help @askstring-help)
  1030.     (default "joe")
  1031.   )
  1032. )
  1033.  
  1034. (set password
  1035.   (askstring
  1036.     (prompt "Please enter your password")
  1037.     (help @askstring-help)
  1038.     (default "joshua")
  1039.   )
  1040. )
  1041.  
  1042. (complete 85)
  1043.  
  1044. ; -------------------------------------------------------------------------
  1045.  
  1046. (if (= client 1)
  1047.   (
  1048.     (set writeit 1)
  1049.     (if (= (exists "ENV:UMSSERVER") 1)
  1050.       (
  1051.         (set writeit
  1052.           (askbool
  1053.             (prompt "ENV:UMSSERVER ist already set. Overwrite "
  1054.                     "this environment variable?")
  1055.             (help @askbool-help)
  1056.           )
  1057.         )
  1058.       )
  1059.     )
  1060.     (if writeit
  1061.       (
  1062.         (set umsserver
  1063.           (askstring
  1064.             (prompt "Please enter the name of the UMS server you want to use.\n\n"
  1065.                     "This name consists of two parts. The part following "
  1066.                     "the \"@\" sign is the name of the machine the server "
  1067.                     "is running on. The other part is the name of the "
  1068.                     "message base on this server. Use \"default\" in order "
  1069.                     "to get the default message base of this server.")
  1070.             (default "default@server")
  1071.             (help @askstring-help)
  1072.           )
  1073.         )
  1074.         (textfile
  1075.           (dest "ENV:UMSSERVER")
  1076.           (append umsserver)
  1077.         )
  1078.         (textfile
  1079.           (dest "ENVARC:UMSSERVER")
  1080.           (append umsserver)
  1081.         )
  1082.       )
  1083.     )
  1084.   )
  1085. )
  1086.  
  1087.  
  1088. ; -------------------------------------------------------------------------
  1089.  
  1090. (if (= client 0)
  1091.   (
  1092.     (set writeit 1)
  1093.  
  1094.     (if (= (exists "ENV:UMSMB.default") 1)
  1095.       (
  1096.         (set writeit
  1097.           (askbool
  1098.             (prompt "ENV:UMSMB.default ist already set. Overwrite "
  1099.                     "this environment variable?")
  1100.             (help @askbool-help)
  1101.           )
  1102.         )
  1103.       )
  1104.     )
  1105.  
  1106.     (if writeit
  1107.       (
  1108.         (textfile
  1109.           (dest "ENV:UMSMB.default")
  1110.           (append mbpath)
  1111.         )
  1112.  
  1113.         (textfile
  1114.           (dest "ENVARC:UMSMB.default")
  1115.           (append mbpath)
  1116.         )
  1117.       )
  1118.     )
  1119.   )
  1120. )
  1121.  
  1122. (complete 90)
  1123.  
  1124. ; -------------------------------------------------------------------------
  1125.  
  1126. (if (= client 0)
  1127.   (
  1128.     (working "Creating configuration files")
  1129.  
  1130.     (if (in drivers 0)
  1131.       (
  1132.         (if (= dillon 0)
  1133.           (
  1134.             (textfile
  1135.               (dest (tackon driver-dest "uucp/lib/seq"))
  1136.               (append "0000")
  1137.             )
  1138.             (textfile
  1139.               (dest (tackon driver-dest "uucp/lib/config"))
  1140.  
  1141.               (append "#\n")
  1142.               (append "#  UULIB:config & S:UUConfig -- UUCP Configuration\n\n")
  1143.               (append "#  Notes: - Copy this file to S:UUConfig\n")
  1144.               (append "#         - UULIB:config and S:UUConfig must be the same file!\n")
  1145.               (append "#\n\n")
  1146.               (append "#  Node name\n")
  1147.               (append "#  WARNING: some UUCP systems can't handle names longer than 7 characters!\n")
  1148.               (append (cat "NodeName      " nodename "\n\n"))
  1149.               (append "#  User name\n")
  1150.               (append (cat "UserName      " shortusername "\n\n"))
  1151.               (append "#  Log level\n")
  1152.               (append "Debug         0\n\n")
  1153.               (append "#  Processor for incoming packets (Default: Uuxqt)\n")
  1154.               (append "#Uuxqt        uuxqt\n\n")
  1155.               (append "#  Spool directory (Default: UUSPOOL:)\n")
  1156.               (append "#UUSpool      UUCP:Spool\n\n")
  1157.               (append "#  Config directory (Default: UULIB:)\n")
  1158.               (append "#UULib        UUCP:Lib\n\n")
  1159.               (append "#  Public directory (Default: UUPUB:)\n")
  1160.               (append "#UUPub        UUCP:Public\n\n")
  1161.               (append "#  Modem init string\n")
  1162.               (append "#ModemInit    ATZ\n\n")
  1163.               (append "#  Modem answer read timeouts in seconds (default 60)\n")
  1164.               (append "#TimeOut      60\n\n")
  1165.             )
  1166.  
  1167.             (textfile
  1168.               (dest (tackon driver-dest "uucp/lib/L.sys"))
  1169.  
  1170.               (append "#\n")
  1171.               (append "#  UULIB:L.sys -- UUCP sites we connect to\n")
  1172.               (append "#\n")
  1173.               (append "# Node   Time Device Baudrate Number/     Expect-Send strings\n")
  1174.               (append "#                             Dialstring\n")
  1175.               (append "#\n")
  1176.               (append (cat uucpfeed " Any  SER:   38400    ATD" feedphone))
  1177.               (append (cat " ogin:-\\r-ogin: " nodename " ssword: " uucppassword "\\r\n"))
  1178.             )
  1179.           )
  1180.         )
  1181.       )  
  1182.     )
  1183.   )
  1184. )
  1185.  
  1186. ; -------------------------------------------------------------------------
  1187.  
  1188. (if (= client 0)
  1189.   (
  1190.     (if (in readers 1)
  1191.       (
  1192.         (textfile
  1193.           (dest (tackon reader-dest "rums/.rumsrc"))
  1194.  
  1195.           (append "editor = c:Ed\n")
  1196.           (append "signature = \"   Bye!*n\"\n")
  1197.           (append "\n")
  1198.           (append (cat "addressdir = \"" (tackon reader-dest "RUMS/") "\"\n"))
  1199.           (append (cat "rumsdir = \"" (tackon reader-dest "RUMS/") "\"\n"))
  1200.           (append (cat "rumslog = \"" (tackon reader-dest "RUMS/rums.log") "\"\n"))
  1201.           (append "\n")
  1202.           (append "startup.general = {\n")
  1203.           (append "  PROMPT \"Welcome to RUMS!\"\n")
  1204.           (append "  SPRINTF addressbook \"%srums.addresses\" addressdir\n")
  1205.           (append "  SPRINTF writefile \"T:rums.writefile.%lx\" #p\n")
  1206.           (append "  SPRINTF readfile \"T:rums.readfile.%lx\" #p\n")
  1207.           (append "  SPRINTF grouplist1 \"T:rums.grouplist.%lx\" #p\n")
  1208.           (append "  SPRINTF grouplist2 \"T:rums.grouplist.sorted.%lx\" #p\n")
  1209.           (append "  SPRINTF file \"%srums.macros\" ( rumsdir )\n")
  1210.           (append "  EXE loadvars\n")
  1211.           (append "}\n")
  1212.           (append "loadvars = {\n")
  1213.           (append "  IF (LOAD $file) ()\n")
  1214.           (append "     (\n")
  1215.           (append "       SPRINTF line \"Unable to load file '%s' !\" \"file\"\n")
  1216.           (append "       NOTIFY $line\n")
  1217.           (append "       QUIT\n")
  1218.           (append "     )\n")
  1219.           (append "}\n")
  1220.           (append "\n")
  1221.           (append "; default startup\n")
  1222.           (append "; reset selected (bit 0) and postponed (bit 6)\n")
  1223.           (append "\n")
  1224.           (append "startup = {\n")
  1225.           (append "  TIMEOUT 1200\n")
  1226.           (append "  EXE startup.general\n")
  1227.           (append "  SPRINTF file \"%srums.keys\" ( rumsdir )\n")
  1228.           (append "  EXE loadvars\n")
  1229.           (append "  SELSTATUS 0 ~0\n")
  1230.           (append "  SELSTATUS 6 ~6\n")
  1231.           (append "  SELSTATUS 1 ~1\n")
  1232.           (append "  SELSTATUS R7 1\n")
  1233.           (append "  SGROUP \"\" 1\n")
  1234.           (append "  SET group \"Mail\"\n")
  1235.           (append "  EXE msgselect\n")
  1236.           (append "}\n")
  1237.           (append "\n")
  1238.         )
  1239.       )
  1240.     )
  1241.   )
  1242. )
  1243.  
  1244. (complete 95)
  1245.  
  1246. ; -------------------------------------------------------------------------
  1247.  
  1248. (if (= client 0)
  1249.   (
  1250.     (set writeit 1)
  1251.  
  1252.     (if (= (exists (tackon mbpath "ums.config")) 1)
  1253.       (
  1254.         (set writeit
  1255.           (askbool
  1256.             (prompt "ums.config already exists in your message base. Overwrite "
  1257.                     "this configuration file?")
  1258.             (help @askbool-help)
  1259.           )
  1260.         )
  1261.       )
  1262.     )
  1263.   )
  1264.   (
  1265.     (set writeit 0)
  1266.   )
  1267. )
  1268.  
  1269. (if writeit
  1270.   (
  1271.     (if (in drivers 0)
  1272.       (
  1273.         (set domainaddress domainname)
  1274.       )
  1275.       (
  1276.         (if (in drivers 1)
  1277.           (
  1278.             (run (cat "rx UMS-Release_10.8_2:Install-Support/MakeFidoDomain " pointaddr))
  1279.             (set domainaddress (getenv "fido-domain"))
  1280.           )
  1281.           (
  1282.             (if (in drivers 2)
  1283.               (
  1284.                 (set domainaddress (cat shortusername "." mausfeed ".maus.de"))
  1285.               )
  1286.               (
  1287.                 (if (in drivers 3)
  1288.                   (
  1289.                     (set domainaddress (cat shortusername "." zerserver ".zer.sub.org"))
  1290.                   )
  1291.                 )
  1292.               )
  1293.             )
  1294.           )
  1295.         )
  1296.       )
  1297.     )
  1298.  
  1299.     (set aka "")
  1300.  
  1301.     (if (in drivers 0)
  1302.       (
  1303.         (if (<> aka "") ((set aka (cat aka "\n"))))
  1304.         (set aka (cat aka "#?@" domainname))
  1305.       )
  1306.     )
  1307.  
  1308.     (if (in drivers 1)
  1309.       (
  1310.         (if (<> aka "") ((set aka (cat aka "\n"))))
  1311.         (set aka (cat aka pointaddr "@fidonet"))
  1312.         (if stoneage
  1313.           (
  1314.             (if (<> aka "") ((set aka (cat aka "\n"))))
  1315.             (set aka (cat aka fakeaddr "@fidonet"))
  1316.           )
  1317.         )
  1318.       )
  1319.     )
  1320.  
  1321.     (textfile
  1322.       (dest (tackon mbpath "ums.config"))
  1323.  
  1324.       (append "DOMAIN-ADDRESS = \"" domainaddress "\"\n\n")
  1325.  
  1326.       (append (cat "AKA = \"" aka "\"\n\n"))
  1327.  
  1328.       (append "LOGLEVEL = 7\n")
  1329.       (append (cat "LOGFILE = \"" (tackon @default-dest "ums.log") "\"\n\n"))
  1330.  
  1331.       (append "HDRREADBUF = 4096\n")
  1332.       (append "HDRWRITEBUF = 16384\n")
  1333.       (append "HDRCACHE = 65536\n")
  1334.       (append "TXTREADBUF = 32768\n")
  1335.       (append "TXTWRITEBUF = 65536\n")
  1336.       (append "CLEANBUF = 524288\n")
  1337.       (append "HDRFILL = 80\n")
  1338.       (append "TXTFILL = 80\n")
  1339.       (append "HEADERFIELDS = 1,2,3,4,5,6,7,8,9,10,11,13,14,16,17\n")
  1340.       (append "INDEXFIELDS = 1,2,3,4,5,8,9,10,16,17\n")
  1341.       (append "HARDFLUSH = 240\n")
  1342.       (append "SOFTFLUSH = 3\n")
  1343.       (append "CHAINQUICK = 1\n")
  1344.       (append "NOCHECKHD = 0\n")
  1345.       (append "ACCESS = #?\n")
  1346.       (append "FULLACCESS = #?\n\n")
  1347.  
  1348. ; -------------------------------------------------------------------------
  1349.  
  1350.       (if (in drivers 0)
  1351.         (
  1352.           (append (cat "uucp.nodename   = " nodename "\n"))
  1353.           (if registered
  1354.             (
  1355.               (append (cat "uucp.pathname   = " nodename "\n"))
  1356.             )
  1357.             (
  1358.               (append (cat "uucp.pathname   = " domainname "\n"))
  1359.             )
  1360.           )
  1361.           (append (cat "uucp.domainname = " domainname "\n\n"))
  1362.         )
  1363.       )
  1364.  
  1365. ; -------------------------------------------------------------------------
  1366.  
  1367.       (if (in drivers 1)
  1368.         (
  1369.           (set inbound  (tackon driver-dest "fido/inbound"))
  1370.           (if (<> (substr inbound (- (strlen inbound) 1) 1) ":")
  1371.             (
  1372.               (set inbound (cat inbound "/"))
  1373.             )
  1374.           )
  1375.           (append (cat "fido.inbound       = \"" inbound  "\"\n"))
  1376.           (set outbound (tackon driver-dest "fido/outbound"))
  1377.           (if (<> (substr outbound (- (strlen outbound) 1) 1) ":")
  1378.             (
  1379.               (set outbound (cat outbound "/"))
  1380.             )
  1381.           )
  1382.           (append (cat "fido.outbound      = \"" outbound "\"\n"))
  1383.           (append "fido.junkcmd       = \"Rename %s %s,BAD\"\n\n")
  1384.         )
  1385.       )
  1386.  
  1387. ; -------------------------------------------------------------------------
  1388.  
  1389.       (if (in drivers 3)
  1390.         (
  1391.           (if (in readers 0)
  1392.             (
  1393.               (append (cat "zer.addressbook  = \"" (tackon reader-dest "IntuiNews/IntuiNews.addresses") "\"\n"))
  1394.             )
  1395.           )
  1396.           (append (cat "zer.download     = \"" (tackon driver-dest "z-netz/download") "\"\n"))
  1397.           (append (cat "zer.upload       = \"" (tackon driver-dest "z-netz/upload") "\"\n"))
  1398.           (append (cat "zer.binary       = \"" (tackon driver-dest "z-netz/binary") "\"\n"))
  1399.           (append "zer.headers      = \"mrn\"\n")
  1400.           (append "zer.footerfilter = \"--#?(MPoint|Zodiac's Point|THE ANSWER)#?\"\n\n")
  1401.         )
  1402.       )
  1403.  
  1404. ; -------------------------------------------------------------------------
  1405.  
  1406.       (if (in tools 5)
  1407.         (
  1408.           (append "expire.grouplist = \"#?, 14\"\n")
  1409.           (append "expire.mail = 28\n\n")
  1410.         )
  1411.       )
  1412.  
  1413. ; -------------------------------------------------------------------------
  1414.  
  1415.       (if (in readers 0)
  1416.         (
  1417.           (append (cat "IntuiNews.Book = \"" (tackon reader-dest "IntuiNews/IntuiNews.addresses") "\"\n\n"))
  1418.         )
  1419.       )
  1420.  
  1421. ; -------------------------------------------------------------------------
  1422.  
  1423.       (append "user\n")
  1424.       (append (cat "  name           = \"" username "\"\n"))
  1425.       (append "  sysop\n")
  1426.       (append (cat "  alias          = \"" shortusername "\"\n"))
  1427.       (append "  alias          = sysop\n")
  1428.       (if (in drivers 0)
  1429.         (
  1430.           (append "  alias          = postmaster\n")
  1431.           (append "  alias          = root\n")
  1432.         )
  1433.       )
  1434.       (append (cat "  password       = \"" password "\"\n"))
  1435.       (append "  readaccess     = #?\n")
  1436.       (append "  writeaccess    = #?\n")
  1437.       (append "  netaccess      = #?\n")
  1438.       (if (in drivers 0)
  1439.         (
  1440.           (append (cat "  uucp.username  = \"" shortusername "\"\n"))
  1441.         )
  1442.       )
  1443.       (if (in drivers 2)
  1444.         (
  1445.           (append (cat "  maus." mausfeed ".info        = \"IIH, IIK, IIL, IIM, INK, INP, IGT, IGS\"\n"))
  1446.           (append (cat "  maus." mausfeed ".privateinfo = \"IGK, ITG\"\n"))
  1447.         )
  1448.       )
  1449.       (if (in drivers 3)
  1450.         (
  1451.           (append (cat "  zer.username   = \"" shortusername "\"\n"))
  1452.         )
  1453.       )
  1454.       (if (in tools 5)
  1455.         (
  1456.           (append (cat "  expire.private = 365\n"))
  1457.         )
  1458.       )
  1459.       (append "enduser\n\n")
  1460.  
  1461. ; -------------------------------------------------------------------------
  1462.  
  1463.       (if (in drivers 0)
  1464.         (
  1465.           (append "user\n")
  1466.           (append (cat "  name            = uucp." uucpfeed "\n"))
  1467.           (append "  alias           = uucp.default\n")
  1468.           (append "  password        = \"\"\n")
  1469.           (append "  readaccess      = ~(fidonet.#?|maus.#?|zer.#?)\n")
  1470.           (append "  writeaccess     = #?\n")
  1471.           (append "  netaccess       = #?\n")
  1472.           (append "  import          = #?\n")
  1473.           (append "  export          = ~(#?@fidonet|#?.(un|%)maus|#?.zer)\n")
  1474.           (append "  distribution    = #?\n")
  1475.           (if dumbhost
  1476.             (
  1477.               (append "  uucp.dumbhost   = Y\n")
  1478.             )
  1479.           )
  1480.           (if (in batch 0)
  1481.             (
  1482.               (if (= mailcompress 0)
  1483.                 (
  1484.                   (append "  uucp.mailexport = Y\n")
  1485.                 )
  1486.               )
  1487.               (if (= mailcompress 1)
  1488.                 (
  1489.                   (append (cat "  uucp.mailexport = Y,1," maxmailcompress "\n"))
  1490.                 )
  1491.               )
  1492.               (if (= mailcompress 2)
  1493.                 (
  1494.                   (append (cat "  uucp.mailexport = Y,2," maxmailcompress "\n"))
  1495.                 )
  1496.               )
  1497.               (if (= mailcompress 3)
  1498.                 (
  1499.                   (append (cat "  uucp.mailexport = Y,5," maxmailcompress "\n"))
  1500.                 )
  1501.               )
  1502.             )
  1503.             (
  1504.               (append "  uucp.mailexport = N\n")
  1505.             )
  1506.           )
  1507.           (if (in batch 1)
  1508.             (
  1509.               (if (= newscompress 0)
  1510.                 (
  1511.                   (append "  uucp.newsexport = Y\n")
  1512.                 )
  1513.               )
  1514.               (if (= newscompress 1)
  1515.                 (
  1516.                   (append (cat "  uucp.newsexport = Y,3," maxnewscompress "\n"))
  1517.                 )
  1518.               )
  1519.               (if (= newscompress 2)
  1520.                 (
  1521.                   (append (cat "  uucp.newsexport = Y,4," maxnewscompress "\n"))
  1522.                 )
  1523.               )
  1524.               (if (= newscompress 3)
  1525.                 (
  1526.                   (append (cat "  uucp.newsexport = Y,6," maxnewscompress "\n"))
  1527.                 )
  1528.               )
  1529.               (if (= newscompress 4)
  1530.                 (
  1531.                   (append (cat "  uucp.newsexport = Y,7," maxnewscompress "\n"))
  1532.                 )
  1533.               )
  1534.             )
  1535.             (
  1536.               (append "  uucp.newsexport = N\n")
  1537.             )
  1538.           )
  1539.           (append "enduser\n\n")
  1540.         )
  1541.       )
  1542.  
  1543. ; -------------------------------------------------------------------------
  1544.  
  1545.       (if (in drivers 1)
  1546.         (
  1547.           (append "user\n")
  1548.           (append "  name              = FidoBoss\n")
  1549.           (append "  alias             = fido.default\n")
  1550.           (append (cat "  alias             = " fidoalias "\n"))
  1551.           (append "  password          = \"\"\n")
  1552.           (append "  readaccess        = fidonet.#?\n")
  1553.           (append "  writeaccess       = fidonet.#?\n")
  1554.           (append "  netaccess         = #?\n")
  1555.           (append "  import            = #?\n")
  1556.           (append "  export            = #?@fidonet\n")
  1557.           (append "  distribution      = #?\n")
  1558.           (append "  fido.netname      = fidonet\n")
  1559.           (append (cat "  fido.pointaddress = " pointaddr "\n"))
  1560.           (if stoneage
  1561.             (
  1562.               (append "  fido.stoneage    = Y\n")
  1563.               (append (cat "  fido.fakeaddress = " fakeaddr "\n"))
  1564.             )
  1565.           )
  1566.           (append (cat "  fido.bossaddress  = " bossaddr "\n"))
  1567.           (append (cat "  fido.arccmd       = \"" arccmd "\"\n"))
  1568.           (append (cat "  fido.dearccmd     = \"" dearccmd "\"\n"))
  1569.           (append (cat "  fido.createintl   = \"Y\"\n"))
  1570.           (append "enduser\n\n")
  1571.         )
  1572.       )
  1573.  
  1574. ; -------------------------------------------------------------------------
  1575.  
  1576.       (if (in drivers 2)
  1577.         (
  1578.           (append "user\n")
  1579.           (append (cat "  name              = maus." mausfeed "\n"))
  1580.           (append "  password          = \"\"\n")
  1581.           (append (cat "  readaccess        = maus." mausfeed ".#?\n"))
  1582.           (append (cat "  writeaccess       = maus." mausfeed ".#?\n"))
  1583.           (append "  netaccess         = #?\n")
  1584.           (append "  import            = #?\n")
  1585.           (append "  export            = #?.(un|%)maus\n")
  1586.           (append "  distribution      = #?\n")
  1587.           (append "enduser\n\n")
  1588.         )
  1589.       )
  1590.  
  1591. ; -------------------------------------------------------------------------
  1592.  
  1593.       (if (in drivers 3)
  1594.         (
  1595.           (append "user\n")
  1596.           (append "  name              = Zerberus\n")
  1597.           (append "  password          = \"\"\n")
  1598.           (append "  readaccess        = zer.#?\n")
  1599.           (append "  writeaccess       = zer.#?\n")
  1600.           (append "  netaccess         = #?\n")
  1601.           (append "  import            = #?\n")
  1602.           (append "  export            = #?.zer\n")
  1603.           (append "  distribution      = #?\n")
  1604.           (append (cat "  zer.serverbox     = \"" zerserver ".ZER\"\n"))
  1605.           (append "enduser\n")
  1606.         )
  1607.       )
  1608.     )
  1609.   )
  1610. )
  1611.  
  1612. ; -------------------------------------------------------------------------
  1613.  
  1614. (if (in readers 0)
  1615.   (
  1616.     (tooltype
  1617.       (prompt "Setting IntuiNews' ToolTypes")
  1618.       (help @tooltype-help)
  1619.       (dest (tackon @default-dest "IntuiNews"))
  1620.       (settooltype "NAME" username)
  1621.       (settooltype "PASSWORD" password)
  1622.       (if (= client 0)
  1623.         (
  1624.           (settooltype "SERVER" "default")
  1625.         )
  1626.         (
  1627.           (settooltype "SERVER" umsserver)
  1628.         )
  1629.       )
  1630.     )
  1631.   )
  1632. )
  1633.  
  1634. (if (in readers 1)
  1635.   (
  1636.     (tooltype
  1637.       (prompt "Setting RUMS' ToolTypes")
  1638.       (help @tooltype-help)
  1639.       (dest (tackon @default-dest "RUMS"))
  1640.       (settooltype "USER" username)
  1641.       (settooltype "PASSWORD" password)
  1642.       (if (= client 0)
  1643.         (
  1644.           (settooltype "SERVER" "default")
  1645.         )
  1646.         (
  1647.           (settooltype "SERVER" umsserver)
  1648.         )
  1649.       )
  1650.       (settooltype "WINDOW" "RAW:0/50//350/RUMS/ALT50/100/200/50")
  1651.       (settooltype "STARTUP" "startup")
  1652.       (settooltype "RUMSRC" (tackon reader-dest "RUMS/.rumsrc"))
  1653.     )
  1654.   )
  1655. )
  1656.  
  1657. ; -------------------------------------------------------------------------
  1658.  
  1659. (working "Creating scripts for tools")
  1660.  
  1661. (if (in tools 5)
  1662.   (
  1663.     (makedir (tackon @default-dest "bak"))
  1664.     (set mbbackup (tackon @default-dest "bak/"))
  1665.     (set mbbackup
  1666.       (expandpath
  1667.         (askdir
  1668.           (prompt "In which disk or drawer should the backup of your message "
  1669.                   "base be placed?\n"
  1670.                   "(A backup is necessery before you invoke \"cleanums\" to "
  1671.                   "physically remove deleted or expired messages)")
  1672.           (help @askdir-help)
  1673.           (default mbbackup)
  1674.         )
  1675.       )
  1676.     )
  1677.  
  1678.     (textfile
  1679.       (dest (tackon script-dest "CleanMB"))
  1680.  
  1681.       (append (cat "Expire " shortusername " " password "\n"))
  1682.       (append "Wait 3\n")
  1683.       (append "QuitUMS.rexx\n")
  1684.       (append "Wait 3\n")
  1685.       (append (cat "Copy \"" (tackon mbpath ".(~IDcount)") "\" TO \"" mbbackup "\"\n"))
  1686.       (append "Wait 3\n")
  1687.       (append "CleanUMS.rexx\n")
  1688.     )
  1689.     (protect (tackon script-dest "CleanMB") 66)
  1690.   )
  1691. )
  1692.  
  1693. ; -------------------------------------------------------------------------
  1694.  
  1695. (working "Creating poll scripts")
  1696.  
  1697. (if (in drivers 0)
  1698.   (
  1699.     (textfile
  1700.       (dest (tackon script-dest "UUCPCall"))
  1701.  
  1702.       (append (cat "ums2uucp -s" uucpfeed "\n"))
  1703.       (append (cat "uucico -s" uucpfeed "\n"))
  1704.     )
  1705.     (protect (tackon script-dest "UUCPCall") 66)
  1706.   )
  1707. )
  1708.  
  1709. (if (in drivers 1)
  1710.   (
  1711.     (textfile
  1712.       (dest (tackon script-dest "FidoCall"))
  1713.  
  1714.       (append "Stack 50000\n")
  1715.       (append "FidoExport FidoBoss\n")
  1716.       (append "TrapDoor CALL BOSS\n")
  1717.       (append "FidoImport\n")
  1718.     )
  1719.     (protect (tackon script-dest "FidoCall") 66)
  1720.   )
  1721. )
  1722.  
  1723. (complete 99)
  1724.  
  1725. (startup "UMS"
  1726.   (prompt "Installing Paths for UMS (binaries/scripts)")
  1727.   (help @startup-help)
  1728.   (set path (cat "\"" bin-dest "\" \"" script-dest "\" \"" rexx-dest "\""))
  1729.   (if (<> readers 0)
  1730.     (
  1731.       (set path (cat path " \"" @default-dest "\""))
  1732.     )
  1733.   )
  1734.   (command (cat "Path " path " ADD\n"))
  1735. )
  1736.  
  1737. (complete 100)
  1738.  
  1739. (exit)
  1740.